import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;


public class DistributionTest {

	@Test
	public void test() {
		
		ArrayList<Card> D = new ArrayList<Card>();
		D = Server.Deck();
		Card result = Server.Distribution(D);
		D = Server.Deck();
		Card expected;
		boolean NotFound = true;
		int i=0;
		
		while(NotFound){
			expected = D.get(i);
			if(result.CardFigure() == expected.CardFigure());
				if(result.CardColour().equals(expected.CardColour())){
					System.out.println("Random was taken from the Deck!");
					NotFound = false;
				}
			i=i+1;
		}
			
		if(NotFound)
			fail();
		}
		
					
			
			
			
	}

